begintownscript;

variables;
short bmessage,pcs,seated,leadchar,rctx,rcty;
string custom_m;

body;

beginstate INIT_STATE;

	set_crime_tolerance(5);

	set_name(6,"Administrator");
	set_name(7,"Captain Kelvin");
	set_name(13,"Boring Innkeeper");

	force_instant_terrain_redraw();
	if(get_flag(1,0) == 0){
		reset_dialog();
		add_dialog_str(0,"It's not so bad to want a little courage sometimes, is it?",0);
		add_dialog_choice(0,". . .");
		bmessage = run_dialog(0);
		set_flag(1,0,1);
	}

break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;

	if(get_crime_level() > 0){
		message_dialog("You're nowhere near well-equipped enough to live as a deserter.  Your crime is rewarded swiftly and immediately.","");
		kill_char(1000,3,0);
	}

	if(get_flag(50,0) < 2){
		seated = (seated + 1);
		if(seated == 2){
			reset_dialog();
			add_dialog_str(0,"You are enlisted in the army to Fort Burr, an outpost that hardly deserves to be called a fort.  Located on the road near Pleasantville in the middle of frozen nowhere, you're deprived of human contact and luxuries like plumbing.",0);
			add_dialog_str(1,"Captain Kelvin has requested to see you.  He says that the nearby town of Pleasantville has been plagued by some threat or another and he wants to use you to help them.",0);
			add_dialog_str(2,"It's a thankless job, what you do.",0);
			add_dialog_choice(0,". . .");
			bmessage = run_dialog(1);
			set_flag(50,0,2);
		}
	}

break;

beginstate 10;

	message_dialog("All that's stored here is food, and you would undoubtedly anger many people if you actually resorted to stealing any.","");

break;

